package com.xhwl.logistics.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.xhwl.common.pojo.ResultJson;
import com.xhwl.common.pojo.cent.sdata.Account;
import com.xhwl.common.pojo.cent.vehicle.VehcCard;
import com.xhwl.common.query.cent.vehicle.CardQuery;
import com.xhwl.common.vo.cent.vehicle.CardVO;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Lu.Aaron
 * @since 2021-02-08
 */
//@RestController
public interface IVehcCardService extends IService<VehcCard> {

    @RequestMapping(value = "/card-service/add", method = RequestMethod.POST)
    ResultJson add(@RequestPart("cardVO") CardVO cardVO, @RequestPart("account") Account account);

    @RequestMapping(value = "/card-service/update", method = RequestMethod.POST)
    ResultJson edit(@RequestPart("cardVO") CardVO cardVO);

    @RequestMapping(value = "/card-service/delete", method = RequestMethod.POST)
    ResultJson delete(@RequestPart("id")Integer id);

    @RequestMapping(value = "/card-service/page", method = RequestMethod.POST)
    ResultJson cardPage(@RequestPart("carQuery")CardQuery carQuery);
}
